package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.middle.dao.credits.CreditsLimitDao;
import com.cloudbroker.bcs.platform.ltb.middle.entity.credits.CreditsLimit;
import com.cloudbroker.bcs.platform.ltb.middle.service.CreditsLimitService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.MycatServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by lili19289 on 2016/11/9.
 */
@Service
public class CreditsLimitServiceImpl extends MycatServiceImplBase implements CreditsLimitService {

    @Resource
    private CreditsLimitDao creditsLimitDao;

    @Override
    protected DAOBase getDAO() {
        return creditsLimitDao;
    }

    public CreditsLimit findByCompany(String companyId){
       return  creditsLimitDao.findByCompany(companyId);
    }






}
